import React, { Component } from 'react'

export default class App extends Component {

  add = (val)=> {
    console.log(val, this);
  }

  render() {
    return (
      <div>
        <button onClick={()=>{this.add(10000)}}>求点击</button>
      </div>
    )
  }
}
